import { createRouter, createWebHistory } from "vue-router";
import TabsView from "../views/tabs/TabsView.vue";
import HomeView from "@/views/tabs/home/HomeView.vue";
import ChatView from "@/views/tabs/chat/ChatView.vue";
import VideoView from "@/views/tabs/video/VideoView.vue";
import MeView from "@/views/tabs/me/MeView.vue";
import TypeView from "@/views/tabs/type/TypeView.vue";
import ThreeDViewer1 from "@/components/ThreeDViewer1.vue";

import AI from "@/views/tabs/chat/components/chatAi/AI.vue"
import ChatDetail from "@/views/tabs/chat/components/ChatDetail.vue"
import Login from "@/views/tabs/chat/components/Login.vue"
import VideoCall from "@/views/tabs/chat/components/chatAi/VideoCall.vue"


const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/tabs",
      name: "tabs",
      component: TabsView,
      children: [
        { path: "/home", name: "home", component: HomeView },
        { path: "/chat", name: "chat", component: ChatView },
        { path: "/video", name: "video", component: VideoView },
        { path: "/me", name: "me", component: MeView },
        { path: "/type", name: "type", component: TypeView },
<<<<<<< HEAD
        { path: "/", name: "home", component: HomeView },
      ],
    },
    { path: "/vr_home", name: "vr_home", component: ThreeDViewer1 },
=======
       
      ],
    },
    {
      path:"/login",
      name:"login",
      component:Login
    },
    {
      path:"/ai",
      name:"ai",
      component:AI
    },
    {
      path:"/chatDetail",
      name:"chatDetail",
      component:ChatDetail,
      props:true
    },
    {
      path:"/videoCall",
      name:"videoCall",
      component:VideoCall
    }
>>>>>>> b07ecd01adb6f72b096f95154d787783265f33f8
  ],
});

export default router;
